function vd(url){

$("body").append("<div id='box'><video id='video' controls preload='auto' width='400px' height='300px'><source src='"+url+"'></video></div>");
	 layer.open({
	 type: 1,
	 title: false,
	 shadeClose: true,
	 area: ['400px', '350px'],
	 content: $('#box'),
	 success: function(layero){
	  setTimeout(function() {
			 $(layero).removeClass('layer-anim');
		  }, 0);
	 },
	  end: function () {
                $("#box").remove();
	
            }
	 });
 }

 function aud(url){

$("body").append("<div id='abox'> <audio  id='audio'  controls autoplay='autoplay' src='"+url+"' ></audio></div>");
	 layer.open({
	 type: 1,
	 title: false,
	 shadeClose: true,
	 area: ['400px', '30px'],
	 content: $('#abox'),
	 success: function(layero){
		
	  setTimeout(function() {
			 $(layero).removeClass('layer-anim');
		  }, 0);
	 },
	  end: function () {
                $("#abox").remove();
	
            }
	 });
 }